export const fieldNameOptions = [
  {
    value: 'cws_status',
    label: '记录状态',
  },
  {
    value: 'cws_flag',
    label: '冲抵状态',
  },
  {
    value: 'cws_id',
    label: '关联字段',
  },
  {
    value: 'cws_role',
    label: '用户的角色',
  },
  {
    value: 'cws_cur_user',
    label: '上一节点用户角色',
  },
];
export const columnNameOptions1 = [
  {
    value: '-5',
    label: '未开始',
  },
  {
    value: '0',
    label: '处理中',
  },
  {
    value: '1',
    label: '已结束',
  },
  {
    value: '-2',
    label: '已拒绝',
  },
  {
    value: '-3',
    label: '已放弃',
  },
];
export const columnNameOptions2 = [
  {
    value: '0',
    label: '未冲抵',
  },
  {
    value: '1',
    label: '已冲抵',
  },
];
export const dropdownMenuOptions = [
  {
    value: '{$curDate}',
    label: '当前日期',
  },
  {
    value: '{$curYear}',
    label: '当前年份',
  },
  {
    value: '{$curMonth}',
    label: '当前月份',
  },
  {
    value: '{$curUser}',
    label: '当前用户',
  },
  {
    value: '{$curUserDept}',
    label: '当前用户所在的部门',
  },
  {
    value: '{$curUserDeptAndChildren}',
    label: '当前用户所在的部门及其子部门',
  },
  {
    value: '{$curUserRole}',
    label: '当前用户的角色',
  },
  {
    value: '{$admin.dept}',
    label: '当前用户分管的部门',
  },
  {
    value: '{$mainId}',
    label: '主表ID',
  },
  {
    value: 'mainFormOpt',
    label: '主表字段',
  },
];
export const firstBracketOptions = [
  {
    value: '',
    label: '',
  },
  {
    value: '(',
    label: '(',
  },
  {
    value: ')',
    label: ')',
  },
];

export const compareOptions = [
  {
    value: '=',
    label: '=',
  },
  {
    value: '>=',
    label: '>=',
  },
  {
    value: '<=',
    label: '<=',
  },
  {
    value: '>',
    label: '>',
  },
  {
    value: '<',
    label: '<',
  },
  {
    value: '<>',
    label: '<>',
  },
];
export const compareOptions2 = [
  {
    value: '=',
    label: '=',
  },
  {
    value: '<>',
    label: '<>',
  },
  {
    value: '=>',
    label: '=>',
  },
];
export const compareOptions3 = [
  {
    value: '=',
    label: '=',
  },
  {
    value: '<>',
    label: '<>',
  },
];

export const logicalOptions = [
  {
    value: 'and',
    label: '并且',
  },
  {
    value: 'or',
    label: '或者',
  },
];

export const columns = [
  {
    title: '条件',
    dataIndex: 'tztj',
    key: 'tztj',
    align: 'center',
    slots: { customRender: 'tztj' },
  },
  {
    title: '操作',
    align: 'center',
    dataIndex: 'action',
    key: 'action',
    slots: { customRender: 'action' },
    width: 100,
  },
];
